package com.lemobar.pay.constants;

/**
 * 微信常量
 */
public interface WxPayConstants {

    /**
     * 返回状态码 SUCCESS/FAIL
     * -SUCCESS
     */
    String SUCCESS = "SUCCESS";

    /**
     * 返回状态码 SUCCESS/FAIL
     * -FAIL
     */
    String FAIL = "FAIL";


    /**
     * 微信网关
     */
    String WXPAY_GATEWAY = "https://api.mch.weixin.qq.com/";

    /**
     * 微信沙箱网关
     */
    String WXPAY_GATEWAY_SANDBOX = "https://api.mch.weixin.qq.com/sandboxnew/";



















    // ***********************************************************************************************************************************
    /*
     微信错误码 err_code  https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=9_1
    */
    /**
     * 参数错误
     * 参数格式有误或者未按规则上传
     */
    String INVALID_REQUEST = "INVALID_REQUEST";
    /**
     * 商户无此接口权限
     * 商户未开通此接口权限
     */
    String NOAUTH = "NOAUTH";   // 商户无此接口权限	商户未开通此接口权限
    String NOTENOUGH = "NOTENOUGH"; // 余额不足	用户账号余额不足
    String ORDERPAID = "ORDERPAID";
    String ORDERCLOSED = "ORDERCLOSED";
    String SYSTEMERROR = "SYSTEMERROR";
    String APPID_NOT_EXIST = "APPID_NOT_EXIST";
    String MCHID_NOT_EXIST = "MCHID_NOT_EXIST";
    String APPID_MCHID_NOT_MATCH = "APPID_MCHID_NOT_MATCH";
    String LACK_PARAMS = "LACK_PARAMS";
    String OUT_TRADE_NO_USED = "OUT_TRADE_NO_USED";
    String SIGNERROR = "SIGNERROR";
    String XML_FORMAT_ERROR = "XML_FORMAT_ERROR";
    String REQUIRE_POST_METHOD = "REQUIRE_POST_METHOD";
    String POST_DATA_EMPTY = "POST_DATA_EMPTY";
    String NOT_UTF8 = "NOT_UTF8";

    // ****************************************************************************************************************************************************

    String USERPAYING = "USERPAYING";



}
